// config.h

#ifndef CONFIG_H
#define CONFIG_H

#include <string>
#include <map>

class SerialPort;

namespace pugi {
class xml_document;
}

class Config
{
public:
	explicit Config(const std::string &filename);
	~Config();
	SerialPort *createInterface(const std::string &devname);
	std::string getWatchWindowName(void);
	int getWatchTimeout(void);
	std::map<std::string, float> getNoiseMap();

private:
	Config(void); //disabled
	bool init(void);

	bool initialized_;
	std::string filename_;
	pugi::xml_document *doc_;
};


#endif
